package com.example.bili.service.impl;

import com.example.bili.entity.Trend;
import com.example.bili.dao.TrendDao;
import com.example.bili.service.TrendService;
import jakarta.annotation.Resource;
import org.springframework.stereotype.Service;


import java.util.List;

/**
 * (Trend)表服务实现类
 *
 * @author makejava
 * @since 2025-02-24 14:27:27
 */
@Service
public class TrendServiceImpl implements TrendService {
    @Resource
    private TrendDao trendDao;


    @Override
    public List<Trend> getTrend() {
        return trendDao.getTrend();
    }

    @Override
    public List<Trend> getTrendByType(Integer userid) {
        return trendDao.getTrendByType(userid);
    }


    @Override
    public Trend getByid(Integer id) {
        return trendDao.getByid(id);
    }

    @Override
    public List<Trend> getall(Integer typeid) {
        return trendDao.getall(typeid);
    }

    @Override
    public List<Trend> listTrendAll(int userId) {
        return trendDao.listTrendAll(userId);
    }

    @Override
    public List<Trend> listTrend(int userId) {
        return trendDao.listTrend(userId);
    }

    @Override
    public List<Trend> getByuserId(int id) {
        return trendDao.getByuserId(id);
    }

    @Override
    public boolean addTrend(Trend trend) {
        return trendDao.addTrend(trend)>0;
    }

    @Override
    public List<Trend> trendCmtNum(int id) {
        return trendDao.trendCmtNum(id);
    }

    @Override
    public List<Trend> trendLikeNum(int id) {
        return trendDao.trendLikeNum(id);
    }

    @Override
    public List<Trend> getTrenndByuserId(int userId) {
        return trendDao.getTrenndByuserId(userId);
    }
}
